package com.base.power.demo.sys.dao;


import com.base.power.demo.common.base.dao.GenericDao;
import com.base.power.demo.sys.entity.QueryUserRelationRole;
import com.base.power.demo.sys.entity.User;
import com.base.power.demo.sys.entity.UserRelationRole;
import com.base.power.demo.sys.entity.UserRole;

/**
 *@author linzf
 **/
public interface UserRelationRoleDao extends GenericDao<UserRelationRole, QueryUserRelationRole> {

    /**
     * 功能描述：根据角色的ID来删除用户角色关联的权限数据
     * @param userRole
     * @return
     */
    int removeByRoleId(UserRole userRole);

    /**
     * 功能描述：根据用户的ID来删除用户的权限数据
     * @param user
     * @return
     */
    int removeUserRole(User user);
}